<template>
  <div>
    <div id="main" style="width: 100%; height: 100vh"></div>
    <!-- 添加按钮 -->
  </div>
</template>

<script>
import * as echarts from "echarts";
import { queryPowerMembers, queryInvitations } from "src/js/api";

export default {
  name: "PowerMembers",

  myChart: null,
  mounted() {
    var chartDom = this.$el.querySelector("#main");
    this.myChart = echarts.init(chartDom);
    this.loadData();
  },
  methods: {
    async loadData() {
      let myChart = this.myChart;
      myChart.showLoading();
      let response = await queryPowerMembers();
      myChart.hideLoading();
      // let response = queryInternalConnect();
      let members = response.data.powermembers;
      let names = response.data.names;
    },

    genGraphic() {},
  },
};
</script>
